#ifndef FOODFINDER_H
#define FOODFINDER_H
#include <QWidget>
#include <QWebView>
#include <QVBoxLayout>
#include "QTableWidget"
#include <QtGui/QWidget>
#include <QtGui/QVBoxLayout>
#include <QProgressBar>
#include <QtWebKit>




class FoodFinder : public QObject
{
    Q_OBJECT

public:
    explicit FoodFinder(QWebView* webView);
    ~FoodFinder();

    //pairs of foodname to studentprice
    QList< QPair<QString,float> >* getFoodList();

private:

    QWebElement document() const;
    QList< QPair<QString,float> >* _foodList;
    QWebView*  webView;

private slots:

    void pageStart(bool ok);

signals:
   void  done(bool thereIsFood );


};

#endif // FOODFINDER_H
